import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
import Login from './views/Login.vue'
import Info from './components/Info'
import pwd from './components/Updateps'
import Check from './components/work/Check.vue'
import AttenceExcList from './components/work/AttenceExcList.vue'
import ExcAdd from './components/work/ExcAdd.vue'
import ExcEdit from './components/work/ExcEdit.vue'
import ExcDetail from './components/work/ExcDetail.vue'
import Leave from './components/leave/Leave.vue'
import LeaveDetail from './components/leave/LeaveDetail.vue'
import TeaApply from './components/leave/TeaApply.vue'
import Hygiene1 from './components/hygiene/Hygiene1.vue'
import HygieneDetail from './components/hygiene/HygieneDetail.vue'
import HygieneEdit from './components/hygiene/HygieneEdit.vue'
import HygieneAdd from './components/hygiene/HygieneAdd.vue'


Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        redirect: '/login'
    }, {
        path: '/home',
        name: 'home',
        component: Home
    }, {
        path: '/login',
        name: 'login',
        component: Login
    }, {
        path: '/check',
        name: 'check',
        component: Check
    }, {
        path: '/AttenceExcList',
        name: 'AttenceExcList',
        component: AttenceExcList
    }, {
        path: '/ExcAdd',
        name: 'ExcAdd',
        component: ExcAdd
    }, {
        path: '/ExcEdit',
        name: 'ExcEdit',
        component: ExcEdit
    }, {
        path: '/ExcDetail',
        name: 'ExcDetail',
        component: ExcDetail
    }, {
        path: '/Leave',
        name: 'Leave',
        component: Leave
    }, {
        path: '/TeaApply',
        name: 'TeaApply',
        component: TeaApply
    }, {
        path: '/LeaveDetail',
        name: 'LeaveDetail',
        component: LeaveDetail
    }, {
        path: '/Hygiene1',
        name: 'Hygiene1',
        component: Hygiene1
    }, {
        path: '/HygieneDetail',
        name: 'HygieneDetail',
        component: HygieneDetail
    }, {
        path: '/HygieneEdit',
        name: 'HygieneEdit',
        component: HygieneEdit
    }, {
        path: '/HygieneAdd',
        name: 'HygieneAdd',
        component: HygieneAdd
    }, {
        path: '/info',
        name: 'Info',
        component: Info
    }, {
        path: '/pwd',
        name: 'pwd',
        component: pwd
    }]
})